package com.system.demo.service.auth.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.system.demo.entity.auth.SystemRoleMenu;

import com.system.demo.mapper.auth.SystemRoleMenuMapper;
import com.system.demo.service.auth.SystemRoleMenuService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemRoleMenuServiceImpl extends ServiceImpl<SystemRoleMenuMapper, SystemRoleMenu> implements SystemRoleMenuService {

    @Override
    public void batchInsertRoleMenu(List<SystemRoleMenu> roleMenuList) {
        // 使用 MyBatis-Plus 提供的 saveBatch 方法
        this.saveBatch(roleMenuList);
    }
}
